package com.example.controller;

import com.example.entity.Teacher;
import com.example.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/A")
public class TeacherController {
  @Autowired
  private TeacherService userService;




  @RequestMapping("/B")
public List<Teacher> findAll(){

  return userService.findAll();



};
}
